﻿using System.Collections.Generic;

namespace FadeLang.VirtualMachine.Test
{
    internal static class Program
    {
        private static void VmTest() {
            var vm = new VirtualMachine();
            var opcodeList = new List<dynamic> {
                4,
                3,
                2,
                8,
                OpCode.Call,
                OpCode.Mul,
                OpCode.Print,
                OpCode.Exit,
                OpCode.Add,
                OpCode.Return
            };
            vm.Run(opcodeList);
        }

        private static void Main(string[] args) {
            VmTest();
        }
    }
}